<style>
	td{ font-size:14px; text-align:center; }
</style>
<div class="uc_r_bl">
	<div class="inc_main">
		<div class="list_title clearfix">
			<div {if $ACTION_NAME eq 'index'}class="cur"{/if}>
				<a href="{url x="index" r="uc_money#index"}">{$LANG.UC_LOGS}</a>
			</div>
			<div {if $ACTION_NAME eq 'incharge'}class="cur"{/if}>
				<a href="{url x="index" r="uc_money#incharge"}">{$LANG.UC_MONEY_INCHARGE}</a>
			</div>
			<div {if $ACTION_NAME eq 'incharge_log'}class="cur"{/if}>
				<a href="{url x="index" r="uc_money#incharge_log"}">{$LANG.UC_MONEY_INCHARGE_LOG}</a>
			</div>
			<div {if $ACTION_NAME eq 'carry'}class="cur"{/if}>
				<a href="{url x="index" value="uc_money#carry"}">{$LANG.UC_CARRY}</a>
			</div>
			<div {if $ACTION_NAME eq 'carry_log'}class="cur"{/if}>
				<a href="{url x="index" value="uc_money#carry_log"}">提现日志</a>
			</div>
		</div>
		<div class="uc_r_bl_box clearfix pt10">
			<div  class="uc-table i_deal_list">
				<table width="100%;" border="0" cellspacing="0" cellpadding="0">
					<tr border="0" style="background-color:#00bef0; color:#fff; height:34px;">
						<th style="width:22%">{$LANG.INCHARGE_SN}</th>
						<th style="width:10%">{$LANG.INCHARGE_MONEY}</th>
						<th style="width:10%">{$LANG.PAYMENT_FEE}</th>
						<th style="width:12%">{$LANG.PAYMENT_INFO}</th>
						<th style="width:8%">{$LANG.PAYMENT_STATUS}</th>
						<th style="width:15%">{$LANG.PAYMENT_GEN_TIME}</th>
						<th style="width:15%">{$LANG.PAYMENT_PAID_TIME}</th>
						<th style="width:8%">{$LANG.OPERATION}</th>
					</tr>
					{foreach from=$list item=order key=key}
					<tr class="item {if $key mod 2 eq 1}item_1{/if}" {if $smarty.foreach.deal.last}style="border-bottom:0"{/if}>
						<td style="font-size:12px;">
							{$LANG.INCHARGE_SN}：{$order.order_sn}<br />
							{$LANG.PAYMENT_SN}：{$order.payment_notice.notice_sn}
						</td>
						<td style="font-size:12px;">
						<?PHP echo format_price($this->_var['order']['total_price']-$this->_var['order']['payment_fee']);?>
						</td>
						<td style="font-size:12px;">
							{function name="format_price" value=$order.payment_fee}
						</td>
						<td style="font-size:12px;">
							{$order.payment.name}
						</td>
						<td style="font-size:12px;">
							<?PHP echo $GLOBALS['lang']['ORDER_PAY_STATUS_'.intval($this->_var['order']['pay_status'])];?>
						</td>
						<td style="font-size:12px;">
							{function name="to_date" value=$order.create_time f="Y-m-d"}&nbsp;{function name="to_date" value=$order.create_time f="H:i"}
						</td>
						<td style="font-size:12px;">
							{function name="to_date" value=$order.payment_notice.pay_time f="Y-m-d"}&nbsp;{function name="to_date" value=$order.payment_notice.pay_time f="H:i"}
						</td>
						<td style="font-size:12px;">
							{if $order.pay_status eq 2}
							{$LANG.PAID_INCHARGE_DONE}
							{else}
							<a href="<?PHP echo url("index","payment#pay",array("id"=>$this->_var['order']['payment_notice']['id']));?>" class="btn_del btn_green">{$LANG.PAID}</a>
							{/if}
						</td>
					</tr>
					{/foreach}
				</table>
				<div class="pages">{$pages}</div>
			</div>				
		</div>
	</div>
	<div class="inc_foot"></div>
</div>
<script type="text/javascript">
	{if $below_payment}
	function SelectPayType(i){
		switch(i){
			case 0:
				$("#J_online_pay").show();
				$("#J_below_pay").hide();
				break;
			case 1:
				$("#J_online_pay").hide();
				$("#J_below_pay").show();
				break;
		}
	}
	{/if}
	$(document).ready(function(){
		$("#incharge_done").click(function(){
			if(!($("input[name='money']").val()!=''&&!isNaN($("input[name='money']").val())&&$("input[name='money']").val()>0))			
			{
				$.showErr("{$LANG.PLEASE_INPUT_CORRECT_INCHARGE}");
				return false;
			}
			else if(!$("input[name='payment']:checked").val())
			{
				$.showErr("{$LANG.PLEASE_SELECT_PAYMENT}");
				return false;
			}
		});
	});
</script>